//package com.itheima.practice.config;
//
//import org.springframework.ai.chat.client.ChatClient;
//import org.springframework.ai.chat.prompt.ChatOptions;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class AiConfig {
//
//    @Bean
//    public ChatClient chatClient() {
//        return ChatClient.builder()
//                .defaultOptions(new ChatOptions().withToolChoice("auto"))
//                .build();
//    }
//}